package com.device.operating.dao;

import java.util.List;

import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;

import com.device.operating.entity.Department;
@Repository
public interface DepartmentRepository extends PagingAndSortingRepository<Department, String>{

	public List<Department> findByParentId(String parentId);
	public List<Department> findByDpname(String dpname); 
	public List<Department> findByDpnameAndParentId(String dpname,String parentId);
	public List<Department> findByRootdpId(String rootdpId);
}
